package com.itheima.service;

import com.itheima.domain.Order;

import java.util.Date;
import java.util.List;

public interface OrderService {
    List<Order> findOrderList(int buyerId);

    int insertOrder(Order order);

    Order findOrderById(int orderId);

    int orderCancel(int orderId);

    int orderRefund(int orderId);

    int orderEnter(int orderId);

    int orderDelete(int orderId);

    int orderPay(Date paymentTime, int orderId);

    Order findOrderByOrderNumber(String orderNumber);

    int editOrder(String buyerPhone, String address, String hintInfo, int orderId);

    List<Order> findValidOrdersByBuyerId(int buyerId);

    List<Order> findValidOrdersBySellerId(int sellerId);

    int insertOrderWithTimeout(Order order,long timeoutMinutes);
}
